# random库
# import random
# print(random.random())
# print(random.uniform(3, 5))
# print(random.randint(2, 8))
# print(random.randrange(10))
# print(random.randrange(1, 10, 2))
# print(random.choice(['python', 'c', 'php', 'java']))
# ls = ['python', 'c', 'php', 'java']
# random.shuffle(ls)
# print(ls)
# print(random.sample(('python', 'c', 'php', 'java'), k=3))


# turtle库
# import turtle
# turtle.setup(800, 600)
# color()
# turtle.color('pink')
# turtle.color('#A22A2A')
# turtle.done()
# 设置颜色模式
# turtle.colormode(1.0)
# turtle.color(1, 1, 0)
# turtle.colormode(255)
# turtle.color((165, 42, 42))
# turtle.done()

# import turtle as t
# t.forward(50)
# t.seth(-90)
# t.forward(50)
# t.right(90)
# t.forward(50)
# t.left(-90)
# t.forward(50)
# t.right(90)
# t.done()

# 图像填充
# turtle.fillcolor("red")
# turtle.begin_fill()
# turtle.circle(20)
# turtle.end_fill()
# turtle.done()

# 绘制几何图形
# import turtle as tri
# tri.fillcolor("red")
# tri.begin_fill()
# tri.forward(50)
# tri.seth(270)
# tri.forward(50)
# tri.seth(135)
# tri.forward(75)
# tri.end_fill()
# tri.done()

# jieba库 分词
# pip install jieba
import jieba
seg_list = jieba.cut("我打算到中国科学研究院图书馆学习", cut_all=True)
print("【全模式】："+"/".join(seg_list))